package designmode.Decorate;

/**
 * Created by Administrator on 2017/10/30 030.
 */
public class Whip extends CondimentDecorator
{
    Beverage beverage;

    public Whip(Beverage beverage)
    {
        this.beverage = beverage;
    }

    @Override
    public String getDes()
    {
        return "奶泡";
    }

    @Override
    public double cost()
    {
        return beverage.cost() + 2.99;
    }
}
